#include<iostream>
#include<vector>

using namespace std;

int sheepCount(int vallage = 0) {
  if (vallage == 7) {
    return 2;
  } else {
    return (sheepCount(vallage + 1) + 1) * 2;
  }
  
}

int main(int argc, char const *argv[]) {
  cout << sheepCount();
  return 0;
}

